var routes= [
  {
    path: '/detail/:id',
    name: 'detail',
    component: () => import('../views/detailView.vue'),
  },
    {
      path: '/Shouye',
      name: 'Shouye',
      component: () => import('../views/Shouye.vue'),
      children:[
        {
            path: '/Shouye/home',
            name: 'home',
            component: () => import('../views/index/HomeView.vue')
          },
          {
            path: '/Shouye/about',
            name: 'about',
            component: () => import('../views/index/AboutView.vue')
          },
      ]
    },{
      path: '/',
      redirect:'/Shouye/home'
    }
    ,{
      path: '/:error(.*)',
      component: () => import('../views/nostView.vue')

    }
  ]
  export default routes